package org.mozhu.zufang.wechat.wx.exception;

public class WechatException extends RuntimeException {

	private static final long serialVersionUID = 4056403420853213519L;
	private String errorCode;
	private String errorMessage;

	public WechatException() {
	}

	public WechatException(String errorCode, String errorMessage) {
		super(errorMessage + " by error code " + errorCode);
		this.errorCode = errorCode;
		this.errorMessage = errorMessage;
	}

	public String getErrorCode() {
		return errorCode;
	}

	public String getErrorMessage() {
		return errorMessage;
	}

}
